package com.string_;

/**
 * @Author 小闽
 * @Date 2024/9/29 20:31
 * @PackageName: com.string
 * @ClassName: StringExercise10
 * @Description: String练习10
 * @Version 1.0
 */
public class StringExercise10 {
    public static void main(String[] args) {
        Test ex = new Test();
        ex.change(ex.str, ex.ch);
        System.out.println(ex.str + "and");
        System.out.println(ex.ch);
    }
}

class Test{
    String str = new String("苏宁易购");
    final  char[] ch = {'j','a','v','a'};
    public void change(String str, char ch[]){
        str = "java";
        ch[0] = 'h';
    }
}